public class Traverse {

    public static void main(String[] args){
        System.out.println("遍历数组");

        Traverse traverse = new Traverse();
    //        tra();
        traverse.tra();

    }


    public void tra(){
//        遍历map数组
        int [][] map = {{0,0,1},{1,1,1},{1,1,3},{2,3,1}};

        for (int i = 0; i < map.length; i++) {
            for (int j = 0; j < map[i].length; j++) {
                System.out.print(map[i][j]+" ");
            }
            System.out.print(" ");
        }


    }

}
